package com.pjh.shitang.entitys;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author yueyinghaibao
 * @date 2022/5/1
 */
@TableName("db_food")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Food {
    @TableId("fid")
    Integer fid;
    Integer wid;
    String name;
    Double price;
    String image;

    public Food(Integer wid, String name, Double price, String image) {
        setWid(wid);
        setName(name);
        setPrice(price);
        setImage(image);
    }
}
